home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / game / misc / DiamondCave2_9.lha / Game2.9 / InstallGame next >
Text File  |  1999-01-22  |  17KB  |  573 lines

  1. ; $VER DC-Install 2.9 (18.01.99)
  2.  
  3. (if (> (exists ("env:Language")) 0) (set lanfound (getenv "Language")) )
  4. (set lan 0)
  5. (set #lanQuestion "Please select language:")
  6. (set #nohelp "Sorry, no help-text.")
  7. (if (= "deutsch" lanfound)
  8.     (
  9.         (set lan 1)
  10.         (set #lanQuestion "Bitte Sprache auswählen:")
  11.         (set #nohelp "Sorry, kein help-text.")
  12.     )
  13. )
  14.  
  15. (set DrawerNameParent @default-dest)
  16. (set Update 0)
  17. (set version 0)
  18.  
  19. (complete 0)
  20.  
  21. (set lan  (askchoice (choices "English" "Deutsch"
  22.                          (prompt #lanQuestion)
  23.                          (help #nohelp)
  24.                          (default lan)
  25.                      )
  26.           )
  27. )
  28.  
  29. (set #normal "normal")
  30. (set #mwb1 "MagicWB (1)")
  31. (set #mwb2 "MagicWB (2)")
  32. (set #rare "RareDiamond")
  33. (set #pal "PAL:LoRes")
  34. (set #palh "PAL:HighRes")
  35. (set #palhi "PAL:HighRes Interlace")
  36. (set #ntsc "NTSC:LoRes")
  37. (set #ntsch "NTSC:HighRes")
  38. (set #ntschi "NTSC:HighRes Interlace")
  39. (set #joy1 "Joystick Port 1")
  40. (set #joy2 "Joystick Port 2")
  41.  
  42. (if (= lan 0)
  43.     (
  44.         (run "describe/sync SCRIPT=INSTALL.BATe") ; describe is (C) Dietmar Eilert
  45.         (set #alreadyinstalled "You have already installed a version greater or equal 2.9!\n")
  46.         (set #oldversion "You have already installed an older version of Diamond Caves.\nDo you want to update or install completely new?")
  47.         (set #installnew "Install new")
  48.         (set #update "Update")
  49.         (set #copy "Copying..." )
  50.         (set #deloldgfx "Deleteing old gfx-file")
  51.         (set #regsource "english/Registration.txt")
  52.         (set #guidesource "english/DiamondCaves.guide")
  53.         (set #whichdrawer "In which drawer should Diamond Caves V2.9 be installed?\n(A directory called Diamond Caves will be created)")
  54.         (set #createdrawer "Creating directory...")
  55.         (set #whaticons "What kind of Icons do you want?")
  56.         (set #noicons "none")
  57.         (set #startupassign "An assign to \"DC:\" will be added to \"S:user-startup\" so that your system will be properly configured to use Diamond Caves.")
  58.         (set #titlescreen "Which screenmode do you want the title screen of Diamond Caves to use?\n(Note that can select more screenmodes like DBL-PAL or CyberVision using the program Diamond Prefs)")
  59.         (set #screenhelp "To play Diamond Caves with other Screenmodes (even gfx-board), use the program DiamondPrefs.")
  60.         (set #settooltype "Setting ToolType...")
  61.         (set #gamescreen "Which screenmode do you want the game to use?\n(Note that can select more screenmodes like DBL-PAL or CyberVision using the program Diamond Prefs)")
  62.         (set #player1 "Which controlling device do you want Player 1 to use?")
  63.         (set #player2 "Which controlling device do you want Player 2 to use?")
  64.         (set #keyboard "Keyboard")
  65.         (set #controlhelp "To redifine the controlling devices, use the program DiamondPrefs.")
  66.         (set #end "\nDiamond Caves installation/update complete, please make sure to read at least the first chapter of the doc-file.\n\nIf you want to reconfigure Diamond Caves, please use the included program DiamondPrefs V1.4.\n\nAnd now enjoy Diamond Caves V2.9!")
  67.     )
  68.     (
  69.         (run "describe/sync SCRIPT=INSTALL.BATd") ; describe ist (C) Dietmar Eilert
  70.         (set #alreadyinstalled "Es ist schon eine Version größer oder gleich V2.9 installiert!")
  71.         (set #oldversion "Es ist schon eine ältere Version von Diamond Caves installiert.\nWollen Sie dieVersion erneuern oder alles komplett neu installieren?")
  72.         (set #installnew "neu installieren")
  73.         (set #update "erneuern")
  74.         (set #copy "Kopiere..." )
  75.         (set #deloldgfx "Lösche alte gfx-datei")
  76.         (set #regsource "deutsch/Registration.txt")
  77.         (set #guidesource "deutsch/DiamondCaves.guide")
  78.         (set #whichdrawer "Wo möchten Sie Diamond Caves V2.9 installieren?\n(Es wird eine Schublade mit dem Namen Diamond Caves erstellt)")
  79.         (set #createdrawer "Erstelle Schublade...")
  80.         (set #whaticons "Was für Icons möchten Sie?")
  81.         (set #noicons "keine")
  82.         (set #startupassign "Ein Assign auf \"DC:\" wird in die Datei \"S:user-startup\" eingefügt, damit Diamond Caves alle benötigten Dateien findet.")
  83.         (set #titlescreen "In was für einem Screenmode soll das Hauptmenu von Diamond Caves laufen?\n(Andere Screenmodes wie DBL-PAL oder CyberVision können mit dem Programm Diamond Prefs eingestellt werden)")
  84.         (set #screenhelp "Um Diamond Caves in einem anderen Screenmode zu betreiben (z.B. auf einer Grafikkarte), bitte das Programm Diamond Prefs benutzen)")
  85.         (set #settooltype "Setze ToolType...")
  86.         (set #gamescreen "In welchem Screenmode soll das Spiel laufen?\n(Andere Screenmodes wie DBL-PAL oder CyberVision können mit dem Programm Diamond Prefs eingestellt werden)")
  87.         (set #player1 "Womit wollen Sie Spieler 1 steuern?")
  88.         (set #player2 "Womit wollen Sie Spieler 2 steuern?")
  89.         (set #keyboard "Tastatur")
  90.         (set #controlhelp "Um die Steuerung nachträglich zu verändern, bitte das Programm Diamond Prefs benutzen")
  91.         (set #end "\nDiamond Caves fertig installiert/erneuert, bitte lesen Sie als neuer Benutzer mindestens das einleitende Kapitel der Anleitung.\n\nUm die Vorgenommenen Einstellungen zu verändern, bitte das enthaltene Programm Diamond Prefs V1.4 benutzen.\n\nUnd nun viel Spaß mit Diamond Caves V2.9!")
  92.     )
  93. )
  94.  
  95. (if (exists "DC:" (NOREQ))
  96.     (
  97.  
  98.         (set vernum (getversion "DC:DiamondCaves"))
  99.  
  100.         (set ver (/ vernum 65536))
  101.         (set rev (- vernum (* ver 65536)))
  102.  
  103.         (set version (+ (* 100 ver) rev))
  104.  
  105.         (if (> version 208)
  106.             (
  107.                 (message #alreadyinstalled)
  108.                 (exit (quiet))
  109.             )
  110.             (
  111.                 (set DrawerNameParent "DC:")
  112.                 (set DrawerName "DC:")
  113.             )
  114.         )
  115.  
  116.         (set Update
  117.             (askchoice
  118.                 (prompt #oldversion)
  119.                 (choices #installnew #update)
  120.                 (help #nohelp)
  121.                 (default 1)
  122.             )
  123.         )
  124.     )
  125. )
  126.  
  127. (if (= Update 1)                  ; only Update according to present Version
  128.     (
  129.         (if (< version 103)         ; this is only for V1.0/1.1/1.2 (two fixed game levels)
  130.             (
  131.                 (complete 30)
  132.                 (copyfiles
  133.                     (prompt #copy)
  134.                     (help #nohelp)
  135.                     (source "UpdateFromV1.0-1.2")
  136.                     (dest DrawerName)
  137.                     (all)
  138.                 )
  139.             )
  140.         )
  141.  
  142.         (if (< version 104)         ; this is the update for V1.0-1.3 (ten new easy levels, one game level)
  143.             (
  144.                 (complete 40)
  145.                 (copyfiles
  146.                     (prompt #copy)
  147.                     (help #nohelp)
  148.                     (source "UpdateFromV1.0-1.3")
  149.                     (dest DrawerName)
  150.                     (all)
  151.                 )
  152.             )
  153.         )
  154.  
  155.  
  156.         (if (exists "DC:gfx/x999" (NOREQ))
  157.             (
  158.                 (complete 50)
  159.                 (delete
  160.                         ("DC:gfx/x999")
  161.                         (prompt #deloldgfx)
  162.                         (help #nohelp)
  163.                 )
  164.             )
  165.         )
  166.  
  167.         (if (< version 106)         ; this is the update for V1.0-1.5 (new gfx-format)
  168.             (
  169.                 (complete 60)
  170.                 (copyfiles
  171.                     (prompt #copy)
  172.                     (help #nohelp)
  173.                     (source "UpdateFromV1.0-1.5")
  174.                     (dest DrawerName)
  175.                     (all)
  176.                 )
  177.             )
  178.         )
  179.  
  180.         (if (< version 107)         ; this is the update for V1.0-1.6 (all replay-files and new sfx-format)
  181.             (
  182.                 (complete 70)
  183.                 (copyfiles
  184.                     (prompt #copy)
  185.                     (help #nohelp)
  186.                     (source "UpdateFromV1.0-1.6")
  187.                     (dest DrawerName)
  188.                     (all)
  189.                 )
  190.             )
  191.         )
  192.  
  193.         (if (< version 108)         ; this is the update for V1.0-1.7 (2 replay-files)
  194.             (
  195.                 (complete 75)
  196.                 (copyfiles
  197.                     (prompt #copy)
  198.                     (help #nohelp)
  199.                     (source "UpdateFromV1.0-1.7")
  200.                     (dest DrawerName)
  201.                     (all)
  202.                 )
  203.             )
  204.         )
  205.  
  206.         (if (< version 200)         ; this is the update for V1.0-1.8 (sample y27)
  207.             (
  208.                 (complete 80)
  209.                 (copyfiles
  210.                     (prompt #copy)
  211.                     (help #nohelp)
  212.                     (source "UpdateFromV1.0-1.8")
  213.                     (dest DrawerName)
  214.                     (all)
  215.                 )
  216.             )
  217.         )
  218.  
  219.         (if (< version 203)         ; this is the update for V1.0-2.2 (gfx)
  220.             (
  221.                 (complete 90)
  222.                 (copyfiles
  223.                     (prompt #copy)
  224.                     (help #nohelp)
  225.                     (source "UpdateFromV1.0-2.2")
  226.                     (dest DrawerName)
  227.                     (all)
  228.                 )
  229.             )
  230.         )
  231.  
  232.         (if (< version 209)         ; this is the update for V1.0-2.7 (prg)
  233.             (
  234.                 (complete 95)
  235.                 (copyfiles
  236.                     (prompt #copy)
  237.                     (help #nohelp)
  238.                     (source "UpdateFromV1.0-2.7")
  239.                     (dest DrawerName)
  240.                     (all)
  241.                 )
  242.             )
  243.         )
  244.  
  245.         (if (exists "DC:Registration.txt" (NOREQ))
  246.             (
  247.                 (copyfiles
  248.                     (prompt #copy)
  249.                     (help #nohelp)
  250.                     (source #regsource)
  251.                     (dest DrawerName)
  252.                 )
  253.             )
  254.         )
  255.  
  256.         (copyfiles                  ; new guide
  257.             (prompt #copy)
  258.             (help #nohelp)
  259.             (source #guidesource)
  260.             (dest DrawerName)
  261.         )
  262.  
  263.     )
  264.  
  265.     (                             ; new install: copy everything to "DrawerName"
  266.         (complete 0)
  267.         (set DrawerNameParent
  268.              (askdir
  269.                  (prompt #whichdrawer)
  270.                  (help #nohelp)
  271.                  (default DrawerNameParent)
  272.              )
  273.         )
  274.  
  275.         (set DrawerName (tackon DrawerNameParent "DiamondCaves"))
  276.  
  277.         (complete 5)
  278.         (makedir DrawerName
  279.             (prompt #createdrawer)
  280.             (help #nohelp)
  281.             (infos)
  282.         )
  283.  
  284.         (complete 10)
  285.         (set icons
  286.             (askchoice
  287.                 (prompt #whaticons)
  288.                 (choices #normal #mwb1 #mwb2 #rare #noicons)
  289.                 (help #nohelp)
  290.                 (default 0)
  291.             )
  292.         )
  293.  
  294.         (if (= icons 0)
  295.             (set IconName "Icons/normal")
  296.         )
  297.         (if (= icons 1)
  298.             (set IconName "Icons/MagicWB1")
  299.         )
  300.         (if (= icons 2)
  301.             (set IconName "Icons/MagicWB2")
  302.         )
  303.         (if (= icons 3)
  304.             (set IconName "Icons/RareDiamond")
  305.         )
  306.  
  307.         (if (<> icons 4)
  308.             (
  309.                 (copyfiles
  310.                     (prompt #copy)
  311.                     (help #nohelp)
  312.                     (source IconName)
  313.                     (dest DrawerName)
  314.                     (pattern "DiamondCave#?")
  315.                     (infos)
  316.                 )
  317.                 (copyfiles
  318.                     (prompt #copy)
  319.                     (help #nohelp)
  320.                     (source IconName)
  321.                     (dest DrawerName)
  322.                     (pattern "Registration.tx#?")
  323.                     (infos)
  324.                 )
  325.                 (copyfiles
  326.                     (prompt #copy)
  327.                     (help #nohelp)
  328.                     (source IconName)
  329.                     (dest DrawerName)
  330.                     (pattern "Editor.pre#?")
  331.                     (infos)
  332.                 )
  333.             )
  334.         )
  335.  
  336.         (complete 20)
  337.         (copyfiles
  338.             (prompt #copy)
  339.             (help #nohelp)
  340.             (source "new")
  341.             (dest DrawerName)
  342.             (all)
  343.             (infos)
  344.         )
  345.  
  346.         (complete 25)
  347.         (copyfiles
  348.             (prompt #copy)
  349.             (help #nohelp)
  350.             (source "UpdateFromV1.0-1.2")
  351.             (dest DrawerName)
  352.             (all)
  353.         )
  354.  
  355.         (complete 30)
  356.         (copyfiles
  357.             (prompt #copy)
  358.             (help #nohelp)
  359.             (source "UpdateFromV1.0-1.3")
  360.             (dest DrawerName)
  361.             (all)
  362.         )
  363.  
  364.         (complete 35)
  365.         (copyfiles
  366.             (prompt #copy)
  367.             (help #nohelp)
  368.             (source "UpdateFromV1.0-1.5")
  369.             (dest DrawerName)
  370.             (all)
  371.         )
  372.  
  373.         (complete 40)
  374.         (copyfiles
  375.             (prompt #copy)
  376.             (help #nohelp)
  377.             (source "UpdateFromV1.0-1.6")
  378.             (dest DrawerName)
  379.             (all)
  380.         )
  381.  
  382.         (complete 45)
  383.         (copyfiles
  384.             (prompt #copy)
  385.             (help #nohelp)
  386.             (source "UpdateFromV1.0-1.7")
  387.             (dest DrawerName)
  388.             (all)
  389.         )
  390.  
  391.         (complete 50)
  392.         (copyfiles
  393.             (prompt #copy)
  394.             (help #nohelp)
  395.             (source "UpdateFromV1.0-1.8")
  396.             (dest DrawerName)
  397.             (all)
  398.         )
  399.  
  400.         (complete 60)
  401.         (copyfiles
  402.             (prompt #copy)
  403.             (help #nohelp)
  404.             (source "UpdateFromV1.0-2.2")
  405.             (dest DrawerName)
  406.             (all)
  407.         )
  408.  
  409.         (complete 65)
  410.         (copyfiles
  411.             (prompt #copy)
  412.             (help #nohelp)
  413.             (source "UpdateFromV1.0-2.7")
  414.             (dest DrawerName)
  415.             (all)
  416.         )
  417.  
  418.         (copyfiles
  419.             (prompt #copy)
  420.             (help #nohelp)
  421.             (source #regsource)
  422.             (dest DrawerName)
  423.         )
  424.  
  425.         (copyfiles
  426.             (prompt #copy)
  427.             (help #nohelp)
  428.             (source #guidesource)
  429.             (dest DrawerName)
  430.         )
  431.  
  432.  
  433.         (complete 70)
  434.         (startup "Diamond Caves"
  435.             (prompt #startupassign)
  436.             (help #nohelp)
  437.             (command "assign DC: \"" DrawerName "\"")
  438.         )
  439.         (makeassign "DC")
  440.         (makeassign "DC" DrawerName)
  441.  
  442.  
  443.         (complete 75)
  444.         (if ((database "vblank") 50)
  445.             (set DefaultMode 1)
  446.             (set DefaultMode 3)
  447.         )
  448.         (set ScreenModeNum
  449.             (askchoice
  450.                 (prompt #titlescreen)
  451.                 (choices #palh #palhi #ntsch #ntschi)
  452.                 (help #screenhelp)
  453.                 (default DefaultMode)
  454.             )
  455.         )
  456.         (if (= ScreenModeNum 0)
  457.             (set ScreenMode "PAL")
  458.         )
  459.         (if (= ScreenModeNum 1)
  460.             (set ScreenMode "PAL-LACE")
  461.         )
  462.         (if (= ScreenModeNum 2)
  463.             (set ScreenMode "NTSC")
  464.         )
  465.         (if (= ScreenModeNum 3)
  466.             (set ScreenMode "NTSC-LACE")
  467.         )
  468.         (tooltype 
  469.             (prompt #settooltype)
  470.             (help #nohelp)
  471.             (dest "DC:DiamondCaves")
  472.             (settooltype "TITLEMODE" ScreenMode)
  473.         )
  474.  
  475.  
  476.         (complete 80)
  477.         (if ((database "vblank") 50)
  478.             (set DefaultMode 0)
  479.             (set DefaultMode 2)
  480.         )
  481.         (set ScreenModeNum
  482.             (askchoice
  483.                 (prompt #gamescreen)
  484.                 (choices #pal #palhi #ntsc #ntschi)
  485.                 (help #screenhelp)
  486.                 (default DefaultMode)
  487.             )
  488.         )
  489.         (if (= ScreenModeNum 0)
  490.             (set ScreenMode "PAL")
  491.         )
  492.         (if (= ScreenModeNum 1)
  493.             (set ScreenMode "PAL-LACE")
  494.         )
  495.         (if (= ScreenModeNum 2)
  496.             (set ScreenMode "NTSC")
  497.         )
  498.         (if (= ScreenModeNum 3)
  499.             (set ScreenMode "NTSC-LACE")
  500.         )
  501.         (tooltype 
  502.             (prompt #settooltype)
  503.             (help #nohelp)
  504.             (dest "DC:DiamondCaves")
  505.             (settooltype "GAMEMODE" ScreenMode)
  506.         )
  507.  
  508.  
  509.         (complete 85)
  510.         (set ControlNum
  511.             (askchoice
  512.                 (prompt #player1)
  513.                 (choices #joy1 #joy2 #keyboard)
  514.                 (help #controlhelp)
  515.                 (default 1)
  516.             )
  517.         )
  518.         (if (= ControlNum 0)
  519.             (set ControlMode "JOY1")
  520.         )
  521.         (if (= ControlNum 1)
  522.             (set ControlMode "JOY2")
  523.         )
  524.         (if (= ControlNum 2)
  525.             (set ControlMode "KEYS")
  526.         )
  527.         (tooltype 
  528.             (prompt #settooltype)
  529.             (help #nohelp)
  530.             (dest "DC:DiamondCaves")
  531.             (settooltype "PLAYER1" ControlMode)
  532.         )
  533.  
  534.  
  535.         (complete 90)
  536.         (set ControlNum
  537.             (askchoice
  538.                 (prompt #player2)
  539.                 (choices #joy1 #joy2 #keyboard)
  540.                 (help controlhelp)
  541.                 (default 0)
  542.             )
  543.         )
  544.         (if (= ControlNum 0)
  545.             (set ControlMode "JOY1")
  546.         )
  547.         (if (= ControlNum 1)
  548.             (set ControlMode "JOY2")
  549.         )
  550.         (if (= ControlNum 2)
  551.             (set ControlMode "KEYS")
  552.         )
  553.         (tooltype 
  554.             (prompt #settooltype)
  555.             (help #nohelp)
  556.             (dest "DC:DiamondCaves")
  557.             (settooltype "PLAYER2" ControlMode)
  558.         )
  559.  
  560.         (tooltype
  561.             (prompt #settooltype)
  562.             (help #nohelp)
  563.             (dest "DC:DiamondCaves")
  564.             (settooltype "GAMEPORTDEVICE" "OFF")
  565.         )
  566.     )
  567. )
  568.  
  569. (complete 100)
  570. (message #end)
  571.  
  572. (exit (quiet))
  573.